@model OA.Model.ManagerGroup
@{
    ViewBag.Title = "修改部门";
 }
@section head{
   <script type="text/javascript">
       $(document).ready(function () {
           $('.btnSubmit').click(function () {
               ajax_submit('#content', undefined, function (r) {
                   if (r.success) {
                       CloseMe();
                   }
               });
               return false; //兼容FF
           });
       });
   </script>
}
@section body{
<body>
   <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',border:false">
            <div class="navigation">
                <div class="left">
                   @ViewBag.CurrentPath 修改
                </div>
                <a href="javascript:CloseMe();" class="back">后退</a>
            </div>
            <div class="expand_margin"></div>
        </div> 
        <div id='content'  data-options="region:'center',border:false" >
             <input type="hidden" value="@Model.ID" />
             <div class="easyui-tabs" data-options="plain:true,border:false,fit:true">
                <div title="编辑部门信息">  
                    <table class="form_table">
                        <col width="180px"/>
                        <tbody>
                        <tr>
                             <th>部门代号：</th>
                             <td><input type="text" name="ID"  readonly="readonly" value="@Model.ID"  class="easyui-validatebox imedisable" data-options="required:true,validType:['length[1,32]','Account']" /></td>
                        </tr>
                        <tr>
                            <th>部门名称：</th>
                            <td><input type="text" name="GroupName" class="easyui-validatebox" data-options="required:true,validType:'length[1,32]'" value="@Model.GroupName" /></td>
                        </tr>
                        <tr>
                            <th>上级部门：</th>
                            <td>
                                <intput name="ParentID" class="easyui-combotree" value="@Model.ParentID"
                                data-options="url:'@Url.Action("GroupTree")',lines:true" style="width:155px;" />
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input type="submit" value="提交保存" class="btnSubmit" />
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>          
            </div>
        </div>
    </div>
</body>
}
